<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$name}</title>
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <link rel="stylesheet" href="/static/component/markdown/editor/editormd.min.css"/>
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script src="/static/component/pear/module/ruinuo/sortable.js"></script>
    <script src="/static/component/pear/module/ruinuo/xm-select.js"></script>
</head>
<body>

<div class="view_body"></div>
<script type="text/html" id="view_body_data">
    <form class="layui-form" action="">
        <div class="mainBox ruinuo_box {{= form_config.form_label}}">
            <div class="main-container layui-row layui-col-space10 label_con">
                {$html|raw}
            </div>
        </div>
        <div class="bottom">
            <div class="ruinuo-button-con">
                <button type="button" class="pear-btn pear-btn-primary" onclick="SendForm()">
                    <i class="layui-icon layui-icon-ok"></i>提交
                </button>
                <button type="reset" class="pear-btn">
                    <i class="layui-icon layui-icon-refresh"></i>重置
                </button>
            </div>
        </div>
    </form>
</script>
<script>

    function FormBind() {
        {$js | raw}
    }

    let $ = layui.jquery;
    let jQuery = $;
    let SettingData = {};
    let SeleteData = {};
    let menu_code = '';
    let raw = '';
    let InitData = {};
    let form_config = {
        detail: '/ruinuo/design.setting/detail/',
        add: '/ruinuo/design.setting/edit/',
        edit: '/ruinuo/design.setting/edit/',
        label_width: {$label_width},
        form_label: '{$form_label}',
        onclick: {$onclick|raw},
    };
</script>

<script src="/static/component/markdown/editor/editormd.min.js"></script>
<script>
    layui.use(['form', 'http', 'public', 'engine_form'], function () {
        init();
    })

    function init() {
        let LoadData = layui.engine_form.LoadData();
        layui.http.SendAjax(LoadData.PostUrl, LoadData.PostData, [], function (res) {
            layui.engine_form.LoadBack(res);
        })
    }

    function SendForm() {
        let SendData = layui.engine_form.SendData();
        layui.http.SendAjax(SendData.PostUrl, SendData.PostData, [], function (res) {
            layui.engine_form.SendBack(res);
        })
    }

    function SearchLoad(elem = '', type = '') {
        layui.engine_table.SearchLoad(elem, type);
    }
</script>
<script src="/static/component/pear/module/jQuery.print.js"></script>
</body>
</html>